

class Dog{
    public String name;
    public int age;
    public String color;

    public void Set(String name,int age,String color){
        this.name=name;
        this.age=age;
        this.color=color;
    }
    public void print(String name,int age,String color){

        System.out.println("名字是"+this.name+","+"年龄是"+this.age+","+"颜色是"+this.color);
    }
    public void Bark(){
        System.out.println("汪汪叫");
    }
    public void Eat(){
        System.out.println("吃");
    }
}




public class Test {


    public static void main(String[] args) {
        System.out.println("你好");
        Dog dog=new Dog();
        dog.name="旺财";
       dog.age=11;
       dog.color="白色";
       dog.Bark();
       dog.Eat();
       dog.print("旺财",11,"白色");
        Dog dog2 = new Dog();

       dog2.name = "初二";
        dog2.age = 12;
        dog2.color = "黄色";
        dog2.print("初一",12,"黄色");
        dog2.Bark();
        dog2.Eat();

    }

}
